package com.se2.antiqueexhibition.Service.impl;

import com.se2.antiqueexhibition.Mapper.CulturalRelicMapper;
import com.se2.antiqueexhibition.Service.CulturalRelicService;
import com.se2.antiqueexhibition.pojo.CulturalRelic;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CulturalRelicServiceimpl implements CulturalRelicService {
    @Resource
    private CulturalRelicMapper culturalRelicMapper;

    @Override
    public List<CulturalRelic> getAllCulturalRelic() {
        return culturalRelicMapper.getAllCulturalRelic();
    }

    @Override
    public CulturalRelic getCulturalRelicById(int id) {
        return culturalRelicMapper.getCulturalRelicById(id);
    }
}
